package com.wang.myblog.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 博客-文章
 * </p>
 *
 * @author s
 * @since 2021-05-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yun_article")
@ApiModel(value="Article对象", description="博客-文章")
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id，外键")
    private String nickname;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "关键字")
    private String keywords;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "点击量")
    @TableField(fill = FieldFill.INSERT)
    private Integer clickNum;

    @ApiModelProperty(value = "发表日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "发布的类型，文章或问答(tab标签)")
    private String labelType;

    @ApiModelProperty(value = "排序规则（降序）")
    private Integer descId;

    @ApiModelProperty(value = "对应父类菜单ID")
    private Integer sublabelId;

    @ApiModelProperty(value = "对应子类菜单ID")
    private Integer parlabelId;

    @ApiModelProperty(value = "热度")
    @TableField(fill = FieldFill.INSERT)
    private Integer hotArticle;

    @ApiModelProperty(value = "纯文本内容")
    private String text;

    @ApiModelProperty(value = "是否显示")
    private Integer isShow;

    @ApiModelProperty(value = "图片地址")
    private String imgurl;


}
